<script type="text/template">
    <%
    for(var i=0;i<result.length;i++){
        var item = result[i];
        item.oneSum = item.price*item.buyNum;
    %>
        <div class="bottomDetailsList" data-id="<%= item.id %>" data-price="<%= item.price %>" data-buyNum="<%= item.buyNum %>">
            <span><%= item.name %></span>
            <span class="bottomDetailsAddBtn detalisListSmallBtn addBtnStyle">+</span>
            <span class="bottomDetailsBuyNum detalisListSmallBtn"><%= item.buyNum %></span>
            <span class="bottomDetailsReduceBtn detalisListSmallBtn">-</span> 
            <span class="bottomDetailsOneSum detalisListSmallBtn">¥<%= item.oneSum %></span>
        </div>
    <%
    }
    %>
</script>